﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace WindowsFormsApplication1
{
    public partial class FrmDgv : Form
    {
        public FrmDgv()
        {
            InitializeComponent();
            DataTable dt = new DataTable();
            DataColumn dc = new DataColumn("Column1");
            dt.Columns.Add(dc);
            dc = new DataColumn("Column2");
            dt.Columns.Add(dc);
            dataGridViewEx1.DataSource = dt;
            DataRow dr = dt.NewRow();
            dr["Column1"] = 111;
            dr["Column2"] = 222;
            dt.Rows.Add(dr);
        }

        private void dataGridViewEx1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            ;
        }
    }
}
